<div class="content container-fluid">
    <header>
        <h4>
            <i class="icon-user"></i>
            Data Pengguna Aplikasi
        </h4>
    </header>
    <div class="row-fluid">
        <div class="span11">
            <section class="widget">
                <div class="body">
                    <blockquote>
                        <a href="<?php echo site_url('dashboard/tambahpengguna');?>"><button class="btn btn-primary">Tambah Pengguna  </button></a>
                    </blockquote>
                    <table id="datatable-table" class="table table-striped">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>Username</th>
                                <th class="no-sort hidden-phone-landscape">Action</th>
                            </tr>
                        </thead>
                        <tbody>

                            <?php 
                            $i = 0;
                            if ($data != null) 
                            foreach ($data as $dt) {  $i++; ?>
                           
                            <tr>
                             <td><?php echo $i; ?></td>
                             <td><?php echo $dt->username; ?></td>
                            <td class="hidden-phone-landscape"> 
                             <div class="btn-group"><?php if ($i!=1) { ?>
                               <a href="<?php echo site_url('dashboard/hapuspengguna').'/'.$dt->id_user; ?>" onclick="return confirm('Anda yakin ?');"> <button class="btn"> <i class="icon-trash"> Hapus</i>
                                </button>
                                </a>
                            </div><?php } ?>

                        </td>
                    </tr>

                    <?php } ?>

                </tbody>
            </table>
        </div>
    </section>
</div>
</div>
</div>
</div>